﻿<Window x:Name="window" x:Class="Iris.UI.NotificationWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Win_notif" Height="150" Width="250"
        AllowsTransparency="True" WindowStyle="None" Background="Transparent"
        MouseEnter="MouseIn" MouseLeave="MouseOut" MouseLeftButtonDown="WindowClicked" RenderTransformOrigin="0.5,0.5"
        Closing="Window_Closing">
	<Window.Resources>
		<Storyboard x:Key="Pop">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="border">
				<LinearDoubleKeyFrame  KeyTime="0" Value="0"/>
				<LinearDoubleKeyFrame KeyTime="0:0:1" Value="0.9"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)" Storyboard.TargetName="window">
				<LinearDoubleKeyFrame KeyTime="0" Value="163"/>
				<LinearDoubleKeyFrame KeyTime="0:0:1" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
        <Storyboard x:Key="Depop" Completed="closeStoryBoard_Completed">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="border">
				<SplineDoubleKeyFrame KeyTime="0" Value="0.9"/>
				<SplineDoubleKeyFrame KeyTime="0:0:1" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)" Storyboard.TargetName="window">
				<SplineDoubleKeyFrame KeyTime="0" Value="0"/>
				<SplineDoubleKeyFrame KeyTime="0:0:1" Value="163"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
	</Window.Resources>
	<Window.RenderTransform>
		<TransformGroup>
			<ScaleTransform/>
			<SkewTransform/>
			<RotateTransform/>
			<TranslateTransform/>
		</TransformGroup>
	</Window.RenderTransform>
	<Window.Triggers>
		<EventTrigger RoutedEvent="FrameworkElement.Unloaded">
			<BeginStoryboard x:Name="Depop_BeginStoryboard" Storyboard="{StaticResource Depop}"/>
		</EventTrigger>
		<EventTrigger RoutedEvent="FrameworkElement.Loaded">
			<BeginStoryboard Storyboard="{StaticResource Pop}"/>
		</EventTrigger>
	</Window.Triggers>
    <Border x:Name="border"  CornerRadius="2" BorderThickness="0" BorderBrush="Orange" Opacity="0.9">
        <Border.Background>
            <LinearGradientBrush MappingMode="RelativeToBoundingBox" EndPoint="0.5,1" StartPoint="0.5,0">
                <GradientStop Color="LightGray"/>
                <GradientStop Color="White" Offset="1"/>
                
            </LinearGradientBrush>
        </Border.Background>
        <Grid>
            <TextBlock FontSize="15px" Margin="2,6,6,14" Name="textBlock1" TextWrapping="Wrap" TextAlignment="Center" Text="Ceci est une notification."/>
        </Grid>
    </Border>
</Window>
